At the moment, MAME 2003-Plus has more advanced support for analog input devices. It is currently in testing, although after about six weeks the new analog input features have been tested by a fair number of users.

If you are willing to try with MAME 2003-Plus, please consider posting here: https://retropie.org.uk/forum/topic/17766/mame2003-plus-hundreds-of-new-games-improved-input-features-new-bugs-now-with-runahead-support